<%-- 
    Document   : index
    Created on : 2009-3-23, 16:48:32
    Author     : LIUGeorge
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.sql.*, java.io.*, java.util.*, database.*" %>
<jsp:useBean id="con" class="database.DatabaseConnection"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style type="text/css">
            <!--
            body {
                background-image: url(../image/3110_background/backcolor.jpg);
                background-repeat: repeat;
                background-color: #FFFFFF;
            }
            -->
        </style>

        <style type="text/css">
            <!--
            .STYLE10 {font-size: 24px}
            -->
        </style>
        <title>The background of Car-Redesign Platform</title>
    </head>
    <body>
        <%
        String logedInAdmin = (String) session.getAttribute("logedInAdmin");
        System.out.println("logedInAdmin " + logedInAdmin);

        session.removeAttribute("logedInAdmin");
            session.removeAttribute("logedInManu");
 

            /*
            String username = request.getParameter("username");
            String password = request.getParameter("password");
            System.out.println(username + password);
            ResultSet rs;

            con.createConnection();
            if (con.checkAdministatorName(username)) {
            con.checkAdminister(username, password);
            rs = con.getUserInformation(username, password);
            if (rs.next()) {
            System.out.println("11");
            session.setAttribute("logedInAdmin", username);
             */
        %>
        <p>&nbsp;</p>
        <p align="center">&nbsp;</p>
        <p>&nbsp;</p>
        <p align="center" class="STYLE10">Car-Redesign Platform Background System</p>
        <p align="center">&nbsp;</p>
        <form id="loginForm" name="loginForm" method="post" action="index.jsp">
            <table width="268" border="0" align="center">
                <tr>
                    <td width="83" height="24" scope="col">Username:</td>
                    <td width="169" scope="col"><label>
                            <input type="text" name="username" id="username" />
                    </label></td>
                </tr>
                <tr>
                    <td height="25">Password:</td>
                    <td><label>
                            <input type="password" name="password" id="password" />
                    </label></td>
                </tr>
                <tr>
                    <td height="30" colspan="2"><div align="center">

                            <input type="submit" name="Login" id="Login" value="Login" />

                    </div></td>
                </tr>
                <tr>
                    <td>
                        <input type="radio" name="type" value="admin" id="RadioGroup1_0" />
                        Admin
                        <input type="radio" name="type" value="manu" id="RadioGroup1_1" />
                        Manu
                    </td>
                </tr>
            </table>
        </form>
        <p align="center">&nbsp;</p>
        <%        
    //      }
    //  }
%>
    </body>
</html>
